var menu=document.getElementsByClassName("menu")[0];
var menubtn=document.getElementsByClassName("icon-menu-two")[0];
var j=0;
menubtn.onclick=function(){
	j++;
	if(j%2==1){
		menu.style.marginLeft="0";
	}else{
		menu.style.marginLeft="-100%";
	}
}


var btn1=document.getElementsByClassName("icon-hao");
btn1[0].onclick=function(){
	xl(this);
	if(this.parentNode.parentNode.parentNode.style.height=="70px"){
		this.parentNode.parentNode.parentNode.style.height="1400px";
		this.parentNode.nextElementSibling.style.height="1400px";
	}else{
		this.parentNode.parentNode.parentNode.style.height="70px";
		this.parentNode.nextElementSibling.style.height="300px";
	}
}
btn1[1].onclick=function(){
	xl(this);
	if(this.parentNode.parentNode.parentNode.style.height=="70px"){
		this.parentNode.parentNode.parentNode.style.height="1230px";
		this.parentNode.nextElementSibling.style.height="1230px";
	}else{
		this.parentNode.parentNode.parentNode.style.height="70px";
		this.parentNode.nextElementSibling.style.height="300px";
	}
}
btn1[2].onclick=function(){
	xl(this);
	if(this.parentNode.parentNode.parentNode.style.height=="70px"){
		this.parentNode.parentNode.parentNode.style.height="1620px";
		this.parentNode.nextElementSibling.style.height="1620px";
	}else{
		this.parentNode.parentNode.parentNode.style.height="70px";
		this.parentNode.nextElementSibling.style.height="300px";
	}
}
btn1[3].onclick=function(){
	xl(this);
	if(this.parentNode.parentNode.parentNode.style.height=="70px"){
		this.parentNode.parentNode.parentNode.style.height="610px";
		this.parentNode.nextElementSibling.style.height="610px";
	}else{
		this.parentNode.parentNode.parentNode.style.height="70px";
		this.parentNode.nextElementSibling.style.height="300px";
	}
}
btn1[4].onclick=function(){
	xl(this);
	if(this.parentNode.parentNode.parentNode.style.height=="70px"){
		this.parentNode.parentNode.parentNode.style.height="560px";
		this.parentNode.nextElementSibling.style.height="560px";
	}else{
		this.parentNode.parentNode.parentNode.style.height="70px";
		this.parentNode.nextElementSibling.style.height="300px";
	}
}
btn1[5].onclick=function(){
	xl(this);
	if(this.parentNode.parentNode.parentNode.style.height=="70px"){
		this.parentNode.parentNode.parentNode.style.height="1700px";
		this.parentNode.nextElementSibling.style.height="1700px";
	}else{
		this.parentNode.parentNode.parentNode.style.height="70px";
		this.parentNode.nextElementSibling.style.height="300px";
	}
}

function xl(btn){
	if(btn.parentNode.parentNode.parentNode.style.height=="70px"){
		btn.parentNode.nextElementSibling.style.opacity="1";
		btn.parentNode.lastElementChild.className="iconfont icon-023caozuo_jianhao";
	}else{
		btn.parentNode.nextElementSibling.style.opacity="0";
		btn.parentNode.lastElementChild.className="iconfont icon-hao";
	}
	
}


var xl=document.getElementsByClassName("lxmj")[0];
var xx=document.getElementsByClassName("xx")[0];
var xlmodal=document.getElementsByClassName("modal_fixed")[0];
xl.onclick=function(){
	console.log(1)
	if(xlmodal.style.display=="none"){
		xlmodal.style.display="block"
	}
}
xx.onclick=function(){
	if(xlmodal.style.display=="block"){
		xlmodal.style.display="none"
	}
}

var xl2=document.getElementsByClassName("lxmj")[1];
var xx2=document.getElementsByClassName("xx")[1];
var xlmodal2=document.getElementsByClassName("modal_fixed")[1];
xl2.onclick=function(){
	console.log(1)
	if(xlmodal2.style.display=="none"){
		xlmodal2.style.display="block"
	}
}
xx2.onclick=function(){
	if(xlmodal2.style.display=="block"){
		xlmodal2.style.display="none"
	}
}





